package main

import (
	"fmt"
)

var NAME string = "majun"

func main() {
	//跳出多层循环
lable2:
	for i := 1; i < 4; i++ {
		for j := 1; j < i; j++ {
			if j == 3 {
				fmt.Println(j)
				break lable2
			}
		}
	}

	//continue
	for i := 0; i < 2; i++ {
		for j := 0; j < 4; j++ {
			if j == 2 {
				continue
			}
			fmt.Println(i, "---", j)
		}
	}
}
